#ifndef HARDWARE_DEFS_H
#define HARDWARE_DEFS_H
//=============================================================================
// hardware_defs.h
//-----------------------------------------------------------------------------
// Copyright 2010 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// Header File Description:
//    This file is an alias for the hardware specific header file.
//
// Target:
//    Si1000/1/2/3/4
//
// IDE:
//    Silicon Laboratories IDE   version 3.3
//
// Tool Chains:
//    Keil
//       c51.exe     version 8.0.8
//       bl51.exe    version 6.0.5
//    SDCC
//       sdcc.exe    version 2.8.0
//       aslink.exe  version 1.75
//
// Project Name:
//    Si100x Code Examples
//
// Release 0.1
//    - 25 JAN 2010
//
// This software must be used in accordance with the End User License Agreement.
//
//=============================================================================
#ifndef COMPILER_DEFS_H
#include <compiler_defs.h>
#endif
//-----------------------------------------------------------------------------
// Include Si100x_defs.h or Si101x_defs.h to defined hardware connections
//-----------------------------------------------------------------------------
#include "Si1000_defs.h"
//=============================================================================
// Si100x Hardware definitions
//-----------------------------------------------------------------------------
#ifdef SI1000_DEFS_H
//-----------------------------------------------------------------------------
// Si100x internal bit definitions
//-----------------------------------------------------------------------------
SBIT(NSS1, SFR_P1, 4);                 // SI100x Internal Connection
SBIT(IRQ, SFR_P0, 7);                  // SI100x Daughter Card Connection
SBIT(SDN, SFR_P2, 6);                  // SI100x Daughter Card Connection
//-----------------------------------------------------------------------------
#endif //SI100X_DEFS_H
//-----------------------------------------------------------------------------

//=============================================================================
//-----------------------------------------------------------------------------
// OSC load cap value for XTAL on Si1000 Daughtercard
//-----------------------------------------------------------------------------
#define EZRADIOPRO_OSC_CAP_VALUE 0xb4
//=============================================================================
//-----------------------------------------------------------------------------
// Specify which motherboard to use here
//-----------------------------------------------------------------------------
#define SI1000_MCU_MOTHERBOARD
//#define SRW_SOFTWARE_DEVELOPEMENT_BOARD
//=============================================================================

//-----------------------------------------------------------------------------
// MCU Motherboard LEDS and Switches
//-----------------------------------------------------------------------------
SBIT(SW01, SFR_P1, 5);
SBIT(SW02, SFR_P1, 6);
SBIT(SW03, SFR_P0, 6);
SBIT(LEDTX, SFR_P2, 0);
SBIT(LEDRX, SFR_P2, 5);
//-----------------------------------------------------------------------------
// Active Low LEDs
//-----------------------------------------------------------------------------
#define ILLUMINATE      0
#define EXTINGUISH      1
//-----------------------------------------------------------------------------

//=============================================================================

//=============================================================================
// End
//=============================================================================
#endif //HARDWARE_DEFS_H